package com.sap.jcp.sm.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="USER")
public class User implements Serializable{

	private Long id;
	private String name;
	private String password;
	private String confPassword;
	private String gender;
	private String location;
	private String phoneNumber;
	private String status;
	private String designation;
	private String contactInfo;
	private String oracleId;
	private String supervisorName;
	private String buddyName;
	private String role;	
	private String primaryTrack;
	private String compOffCount;
	private String shiftCount;
	
	@Column(name="COMP_COUNT")
	public String getCompOffCount() {
		return compOffCount;
	}
	public void setCompOffCount(String compOffCount) {
		this.compOffCount = compOffCount;
	}
	@Column(name="SHIFT_COUNT")
	public String getShiftCount() {
		return shiftCount;
	}
	public void setShiftCount(String shiftCount) {
		this.shiftCount = shiftCount;
	}
	
	@Id
	@GeneratedValue
	@Column(name="USER_ID", nullable = false)
	public Long getId() {
		return id;
	}
	@Column(name="PRIMARY_TRACK")
	public String getPrimaryTrack() {
		return primaryTrack;
	}
	public void setPrimaryTrack(String primaryTrack) {
		this.primaryTrack = primaryTrack;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="USER_NAME", nullable = false)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name="USER_PASSWORD", nullable = false)
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(name="USER_GENDER")
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	@Column(name="USER_LOCATION")
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	@Column(name="PHONE_NUMBER")
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	@Column(name = "EMAIL_ID", unique = true, nullable = false)
	public String getEmailId() {
		return emailId;
	}
	public void setEmailId(String emailId) {
		this.emailId = emailId;
	}
	@Column(name="STATUS")
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="DESIGNATION")
	public String getDesignation() {
		return designation;
	}
	public void setDesignation(String designation) {
		this.designation = designation;
	}
	@Column(name="CONTACTINFO")
	public String getContactInfo() {
		return contactInfo;
	}
	public void setContactInfo(String contactInfo) {
		this.contactInfo = contactInfo;
	}
	@Column(name="ORACLE_ID")
	public String getOracleId() {
		return oracleId;
	}
	public void setOracleId(String oracleId) {
		this.oracleId = oracleId;
	}
	@Column(name="SUPERVISOR_NAME")
	public String getSupervisorName() {
		return supervisorName;
	}
	public void setSupervisorName(String supervisorName) {
		this.supervisorName = supervisorName;
	}
	@Column(name="BUDDY_NAME")
	public String getBuddyName() {
		return buddyName;
	}
	public void setBuddyName(String buddyName) {
		this.buddyName = buddyName;
	}
	@Column(name="ROLE")
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getConfPassword() {
		return confPassword;
	}
	public void setConfPassword(String confPassword) {
		this.confPassword = confPassword;
	}
	private String emailId;
	
	
	
}
